﻿using HK.Editor.GUIEx.Drawer;
using HK.Editor.GUIEx.Protocol.Drawer;
using HK.Editor.Serializable;
using HK.Editor.Settings.Data;
using HK.Editor.Settings.Protocol;
using UnityEditor;

namespace HK.Editor.Settings
{
    /// <summary>
    /// 打包配置文件编辑器
    /// </summary>
    [CustomEditor(typeof(BuildConf))]
    public class BuildConfEditor : SAssetEditor<BuildConf, BuildConfData>, IBuildConfEditor<BuildConf, BuildConfData>
    {
        /// <summary>
        /// 保护构造函数
        /// </summary>
        public BuildConfEditor() : base() {}
        
        /// <summary>
        /// 生成头部Drawer
        /// </summary>
        /// <param name="iSelf">自身Property</param>
        /// <param name="iStatic">静态标志位</param>
        /// <param name="iPath">路径</param>
        /// <returns>头部Drawer</returns>
        protected override ISAssetHeaderDrawer GenerateHeaderDrawer(SerializedProperty iSelf, bool iStatic, string iPath)
        {
            return SAssetHeaderDrawer.Create(iSelf, iStatic, iPath);
        }
    }
}
